package com.hmall.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ClassName: TradeClient
 * Package: com.hmall.api.client
 * Description:
 *
 * @Author zhangdingye
 * @Create 2025/4/25 下午7:27
 * @Version 1.0
 */
@FeignClient("trade-service")
public interface TradeClient {

    // 抽取标记订单状态为已支付接口
    @PutMapping("/orders/{orderId}")
    void markOrderPaySuccess(@PathVariable("orderId") Long orderId);
}
